Repository navigation
Conversation
4 of 5 tasks
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the
|
Release.Flags is the set of release flags Other holds (PROPER, REAL, REMUX, HYBRiD, INTERNAL, RERiP; REAL.PROPER is both REAL and PROPER) and Release.Repack the repack generation (1 for REPACK, 2 for REREPACK or REPACK2, n for REPACKn), the highest when there are several. Other stays as it is. Both read Other in any case, as the removed methods did, so a caller's other row spelled 'remux' or 'Proper' still counts, and a remux of no source is still taken from a BluRay. Both are read in one place, from the Other that the build leaves, so they are right on every path: a plain parse, a hint, and a name opened by flags in brackets, whose flags are merged into Other after the rest is built. cmd/rls writes them as flags and repack, and computes is_proper and is_repack from them. BREAKING CHANGE: Release.IsProper, IsRepack, IsRemux and IsHybrid are removed. Use Flags.Has(FlagProper), Repack != 0, Flags.Has(FlagRemux) and Flags.Has(FlagHybrid). The new fields are set by the parse: unlike the methods, they do not follow a later change to Other, and a Release built by hand has the flags it is given.
zze0s
force-pushed
the
feat/dynamic-range
branch
from
November 18, 2026 16:12
54802f4 to
ff0c64c
Compare
zze0s
force-pushed
the
feat/flags-repack
branch
from
November 18, 2026 16:12
bbe9aa3 to
4b662e1
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Stacked on #81. Step 5 of the stack.
Whether a release is a proper, a repack or a remux was four methods that searched
Otheron every call, and nothing gave the generation of a repack as a number. This PR reads those once, at the parse:Otherstays as it is. Nothing is taken out of it.OtherFlagsRepackShow.S01E02.REAL.PROPER.1080p.WEB.H264-GRPREAL.PROPERFlagProper,FlagRealShow.S01E02.REPACK2.1080p.WEB.H264-GRPREREPACKMovie.2019.HYBRiD.REMUX.2160p.UHD.BluRay-GRPHYBRiD,REMUXFlagRemux,FlagHybridWhat a caller writes instead
r.IsProper()r.Flags.Has(rls.FlagProper)r.IsRepack()r.Repack != 0r.IsRemux()r.Flags.Has(rls.FlagRemux)r.IsHybrid()r.Flags.Has(rls.FlagHybrid)Two differences from the methods:
Other. The methods searchedOthereach time. The fields are set by the parse. A caller that editsOtheron a copy has to clear the flag too. qui does that inwithoutHybridandstripSeasonPackRepackTags, and reads neither field today.Releasebuilt by hand has the flags it is given.Both read
Otherin any case, as the methods did, so a caller'sotherrow spelledremuxorProperstill counts.Readings
No reading changes. Against #81, 0 names differ in any field in any set (71,919 names), and
FlagsandRepackequal an independent reading ofOtheron every one.cmd/rlsgains the keysflagsandrepack. Itsis_properandis_repackkeys are computed from them and are identical on every name.Downstream impact on autobrr and qui
Neither app calls the four methods, so neither needs a change. Both build and pass against this commit with the ports of #81: qui's 11 packages, and autobrr apart from the two tests that fail against master.
Where they could use the fields later, not done here:
Proper,Repack,HybridandMediaProcessing = "REMUX"fromOtherwithslices.Contains. One caveat: its repack test isREPACKorREREPACKonly, andRepack != 0is also true forREPACK2and up, so switching would widen what counts as a repack.Otherin its variant overrides.For you to decide
Releasecarries them and they cost nothing to read. The price is the first difference above. If you would rather keep them followingOther, they become methods again andRepack()computes the number.Flagsmarshals as a list of spellings, likeDynamicRangein feat(dynamicrange)!: replace HDR with a sorted DynamicRange set #81, and the same open question about other encoders applies.Type of change
How has this been tested?
Other.Otherwith a fixed case and lost the remux flag for a caller'sremuxrow, and with it the inferredBluRaysource. Fixed here.go vet ./...,gofmt -l .with Go 1.26 and 1.27,go test ./...with the corpus present,go test -race ./..., thecmd/rlschecks.Benchmarks, #80 against the last of the three typed PRs (#83), 8 rounds in alternating order: Parse, Build, ParseNyaa, ParseSports and ParseLong are within noise, and allocations are identical on every benchmark.
ParseClaims(Web.repeated 4,000 times) reads between +1.4% and +3.3% across runs. A profile gives none of the changed functions a sample there, and the extra time is in lexer code that no step touches, so I read it as code layout and could not pin it further.Checklist
go fmtand the test suite passes locallytests.yamlfor any parsing change (no reading changes)AI disclosure
Yes, all of it. Claude Code (Claude Fable 5.2) wrote it and a second model run reviewed it.
BREAKING CHANGE:
Release.IsProper,IsRepack,IsRemuxandIsHybridare removed. UseFlags.Has(FlagProper),Repack != 0,Flags.Has(FlagRemux)andFlags.Has(FlagHybrid). The new fields are set by the parse and do not follow a later change toOther.